package org.test.jpa.model;

import javax.persistence.*;

/**
 * Manager for project.
 *
 */

@Entity
@Table(name = "managers")
@DiscriminatorValue("MNGR")
public class Manager extends Employee 
{
	@ManyToOne(optional=false,fetch=FetchType.LAZY)
	@JoinColumn(name="PROJECT_ID", nullable=false)
	private Project project;	

	public void setProject(Project project)
	{
		this.project = project;
	}
}
